Using matrix form to remove a for loop MATLAB

welcome to shbcf.ru